package edu.zut.exceptionPra;

public class Demo {

    public static void main(String[] args) throws MyException {
        try {
            int i = 1/0;
        }catch (ArithmeticException e){
            //手动抛出自定义异常
            throw new MyException("被除数不能为0");
        }
    }
}
